package demo5;

import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;

import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.context.annotation.ImportResource;
import org.springframework.stereotype.Component;

@Component
public class Person {
    //@Autowired
    @Resource
    private Clothes clothes;

    public void play() {
        clothes.wear();
        System.out.println("出去玩");
    }
}
